Repository navigation
fix(fields): a pick says why it kept a filled amount, the opening fill stops waiting on an unreadable parent, and a code-plus-amount pick copies both - #36918
Merged
objectstack-fleet[bot] merged 3 commits intoNov 24, 2026
Conversation
…ait, code-plus-amount pick Claude-Session: https://claude.ai/code/session_01WGufzhoBbwh8URjwQHde8v Co-Authored-By: Claude <noreply@anthropic.com>
…ugh the grid and every record-form host Claude-Session: https://claude.ai/code/session_01WGufzhoBbwh8URjwQHde8v Co-Authored-By: Claude <noreply@anthropic.com>
…changeset for the cross-currency pick follow-ups Claude-Session: https://claude.ai/code/session_01WGufzhoBbwh8URjwQHde8v Co-Authored-By: Claude <noreply@anthropic.com>
This was referenced Nov 24, 2026
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8 席位核对 — ACCEPT · repo:objectstack#3 · head 12d8d3b · 2026-11-24T09:10ZL1-a read of #36918 (card #36412) at Mechanical.
Relation. Read, item by item.
Nits (no action required):
Every open finding is a nit, so ACCEPT. On landing, #36412 stays open for ruling 7118795825. |
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v Landing · 2026-11-24T09:11Z · area ux-B · head
|
objectstack-fleet
Bot
deleted the
claude/issue-36412-cross-currency-pick-followups
branch
November 24, 2026 09:32
This was referenced Nov 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Yibo Wang · project thread
repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v
Refs #36412
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Items 1–4 of the card and To-do 5. The ruling item (comment 7118795825) is not built here: see "Ruling item" below.
held, the value its target held at the pick. The note shows while the target still holds that value (empty, or the earlier value a re-pick or anoverwrite: truepair left in place:withheldStillStands), on the grid and on the record face, and ends "Unit Price still holds its earlier value." Editing the target ends the note.useFollowedParentRead(followedParentRow.ts) reports where the parent read stands:none,pending,read, orunread(the read failed or answered no row, the source has nofindOne, or no parent object is stamped).LookupFieldwaits only while it ispending. Anunreadparent puts a following amount in the newAmountCurrencykindunread: it is withheld with the reasontargetCurrencyUnread("the currency here could not be read"), and every target that does not depend on currency (the description) fills.7a5ae65e54e: the only writer ofonAutofillis the form renderer, and every record-form layout draws throughgateFormFields→stampRecordFormFields:ObjectFormsimple and sectioned arms,DrawerForm,ModalForm,TabbedForm,WizardForm, and the forms drawn throughObjectForm(MasterDetailFormheader and line form,EmbeddableForm). The record page's body tables (RecordBodyTableEditor) are a line-item grid and judge their own picks; the record page's own field editing hands noonAutofill, so it fills nothing. No host needed a change; therecordFormStamp.tsheader now lists the hosts and names the one that keeps the old behaviour: a standaloneformnode (the@object-ui/componentsform renderer outside these hosts), which holds no object field map.planDeclaredLookupAutofilland the grid'splanLookupAutofillnow collect every value a pick would write (declaredPickWrites, the same-named copy) and judge them together (judgePickWrites):targetCurrencyis handed the pick's writes, andamountCurrencyOf's new third argument lays a write to the amount's own code field on the record before resolving. A parent path is not overlaid (a parent's code is not the record's to write). Pinned through the grid and throughObjectForm.lookup.autofillCurrencyUnreadandlookup.autofillKept, in all 11 packs (zh-Hant generated) and inFIELD_DEFAULTS.@object-ui/fields,@object-ui/i18n,@object-ui/plugin-form(the last for the comment inrecordFormStamp.ts), allpatch.Ruling item (not built here)
Not built, so this PR carries
Refs #36412and leaves the card open. Two reasons. First, size: items 1–4 already change 714 lines, and the ruling item needs a copied-under record and a per-render re-judgement on both hosts plus a sentence in 11 packs and its pins, which puts the total past the 900-line bound. Second, one visible case the ruling does not settle: a withheld note refreshed to a new record currency that equals the picked amount's own currency (the reason no longer holds, and the target is still empty) could drop the note, keep the old wording, or say something new. Follow-up: none filed; the seat decides.Tests
Tests on head
12d8d3bb3bd:pnpm --dir ui exec vitest run --maxWorkers=2 packages/fields/ packages/plugin-form/ packages/i18n/(Test Files 682 passed, 1 skipped; Tests 9796 passed, 21 skipped);type-checkof@object-ui/fields,@object-ui/plugin-form,@object-ui/i18nexit 0.New pins and ablations
GridField.lookupAutofill-28245.test.tsx, describe "(objectstack#36412)", 8 tests:amountCurrencyOfreads the pick's code write, not a parent's; the same-named copy and declared pairs copy a code and the price in it onto a fresh line (control: a grid drawing no code column withholds the price; a code the record holds is kept and judges the price); a withheld value over a filled target carriesheld(control: over an empty one it does not); through the grid, a fresh line fills code and price with no note (control: no code column, "no currency is chosen"), a pick over a filled JPY cell keeps 80 and says so until the cell is edited (control: an empty cell's note has no kept sentence).ObjectForm.lookupAutofill-28245.test.tsx, describe "(objectstack#36412)", 13 tests: anoverwrite: truepick over a filled JPY price keeps it and says so (control: a EUR quote replaces it, no note); a code-plus-price pick fills both on a quote with no code (control: a pick without the code pair says no currency is chosen); the opening fill does not wait on a failed parent read or a source with nofindOne, fills the description and says the currency could not be read (control: an answering read fills the price); each of six layouts (simple flat, simple sections, drawer, modal, tabbed, wizard) withholds a EUR price from a JPY quote and fills a EUR one.scripts/ablation-replace.mjs, vitest aliasing@object-ui/*tosrc(no dist between mutation and run), each restored to the HEAD blob withgit diff HEADempty:lookupAutofill.tsanchorconst refused = judgeCopy(currency, c, writes);x1 to x0 (writes not handed): Tests 4 failed, 56 passed (60); restored blobfaf38ecb05a9.LookupField.tsxanchorconst followedParentPending = followedParentState === 'pending';x1 to x0 (an unread parent waits again): Tests 2 failed, 26 passed (28); restored blob4717859dc284.withheldStillStandsreduced to "the target is empty": Tests 2 failed, 58 passed (60); restored blobfaf38ecb05a9.Acceptance notes
formnode with a lookup carryinglookupAutofillin its field carrier still copies across currencies. Making it judge needs a change in@object-ui/components(outside this card's surface) or narrowing theFieldSchema.lookupAutofilldescribe inpackages/spec; neither is done here, and it is reported to the seat.followedParentRow.ts: a failed read now records an answer with no row instead of clearing the answer. The amount box (CurrencyField) reads the same record either way.Verification
Gates
dispatch-gates --commandsderived 41 commands at12d8d3bb3bd; 40 ran with exit 0;pnpm --dir ui exec vitest run scripts/is NOT MEASURED (SIGKILL beside the package suite, then exit 124 at the 590 s limit under the lock; its closure-budget case needs a console build) and is left to CI.dispatch-gates --ran: 41 derived, 40 run, 1 NOT-MEASURED, 0 UNRUN.uicheck:new-line-citations: 0 new citations, exit 0.overlap-checkbefore every push: VERDICT clean exit 0.Read first, by risk: (1)
judgePickWritesandwithCodeWriteinlookupAutofill.ts; (2)useFollowedParentReadinfollowedParentRow.tsand its use inLookupField.tsx; (3)withheldStillStandsat the two note sites.Two-minute check:
pnpm --dir ui exec vitest run packages/plugin-form/src/ObjectForm.lookupAutofill-28245.test.tsx -t 36412passes 13 tests; in it, a quote with no code picks a EUR product and holdsEURand100.https://claude.ai/code/session_01WGufzhoBbwh8URjwQHde8v
🤖 Generated with Claude Code